<template>
    <div class="Login">
         <h1>  登录页</h1>
        <button @click="login">用户登录</button>
    </div>
</template>

<script>
export default {
    name:'Login',
    data() {
        return {
            
        }
    },
    methods: {
        login(){
            sessionStorage.setItem('name','qiqi')
            this.$router.push('/')
        }
    },
}
</script>

<style>

</style>